import { http } from '@/utils/http'

/**
 * 获取数据概览
 * @returns
 */
export const getDashboardDataAPI = () => {
  return http<{
    studentCount: number
    teacherCount: number
    courseCount: number
    todayIncome: string
  }>({
    method: 'GET',
    url: '/wechat/home/dashboard',
  })
}

/**
 * 获取季度消费收入统计
 * @returns
 */
export const getQuarterlyConsumptionRevenueStatisticsAPI = (data: { statisticsDate: number }) => {
  return http<number[]>({
    method: 'GET',
    url: '/statistics/quarterlyConsumptionRevenueStatistics',
    data,
  })
}
